/*
 * package com.midian.jp.action.cashierdesk;
 * 
 * import java.io.IOException; import java.io.PrintWriter; import
 * java.io.UnsupportedEncodingException; import java.math.BigDecimal; import
 * java.sql.Timestamp; import java.util.ArrayList; import java.util.Date; import
 * java.util.HashMap; import java.util.List; import java.util.Map;
 * 
 * import javax.annotation.Resource; import
 * javax.servlet.http.HttpServletResponse;
 * 
 * import net.sf.json.JSONArray;
 * 
 * import org.apache.struts2.ServletActionContext; import
 * org.springframework.context.annotation.Scope; import
 * org.springframework.stereotype.Controller;
 * 
 * 
 * import com.midian.jp.action.common.CommonAction;
 * 
 * import com.midian.jp.common.object.Result; import
 * com.midian.jp.common.object.ZTreeNode; import
 * com.midian.jp.common.object.InfoDone; import
 * com.midian.jp.common.object.LoginObject; import
 * com.midian.jp.common.util.DateUtil; import
 * com.midian.jp.common.util.StringUtil;
 * 
 * import com.midian.jp.pojo.TbmAccountGoods; import
 * com.midian.jp.pojo.TbmAccountMembers; import
 * com.midian.jp.pojo.TbmAccountMembersId; import
 * com.midian.jp.pojo.TbmAccountOrder; import
 * com.midian.jp.pojo.TbmAccountOrderGoods; import
 * com.midian.jp.pojo.TbmAccountOrderLog; import
 * com.midian.jp.pojo.TbmMemberIntegralLog; import
 * com.midian.jp.service.cashierdesk.CashierDeskService; import
 * com.midian.jp.service.common.CommonService; import
 * com.midian.jp.service.pay.PayService;
 * 
 * import com.opensymphony.xwork2.ActionContext;
 * 
 * 
 *
/*
 * @Controller @Scope("prototype") public class CashierDeskAction extends
 * CommonAction {
 * 
 * private static final long serialVersionUID = 1L;
 * 
 * @Resource PayService payService;
 * 
 * @Resource CommonService commonService;
 * 
 * @Resource CashierDeskService service; private InfoDone json;
 * 
 * 
 * private List<String> goodsId; private List<String> goodsPrice; private
 * List<String> goodsBuyNum;
 * 
 *//**
	 * 到收银台
	 * 
	 * @return
	 */
/*
 * public String toCashierDesk(){ String orderNum =
 * StringUtil.getRandomMa3()+String.format("%013d",(new Date().getTime()));
 * ActionContext.getContext().put("orderNum", orderNum); message
 * ActionContext.getContext().put("message",
 * ServletActionContext.getRequest().getParameter("message")); return
 * "toCashierDesk"; }
 * 
 * 
 *//**
	 * 根据会员手机号/会员卡号查询会员
	 * 
	 * @return
	 */
/*
 * public String queryMembers(){ LoginObject login = getLoginObject(); String
 * parameter = ServletActionContext.getRequest().getParameter("parameter"); try
 * { List<Object[]> list = service.queryMembers(login.getAccountId(),
 * parameter); setJson(new InfoDone("y","","","","",list)); } catch (Exception
 * e) { e.printStackTrace(); } return "ajaxResult"; }
 * 
 *//**
	 * 会员充值后刷新会员信息
	 */
/*
 * public String refreshMember(){ String memberId =
 * ServletActionContext.getRequest().getParameter("memberId"); try { Object[]
 * object = service.queryByMemberId(memberId); setJson(new
 * InfoDone("y","","","","",object)); } catch (Exception e) {
 * e.printStackTrace(); } return "ajaxResult"; }
 * 
 * 
 *//**
	 * 查询所有树节点
	 * 
	 * @throws IOException
	 */
/*
 * public void treeAllNodes() throws IOException{ //String id =
 * ServletActionContext.getRequest().getParameter("id"); //String lev =
 * ServletActionContext.getRequest().getParameter("lv");
 * 
 * //返回数据字典的Json格式数据 JSONArray jObj; HttpServletResponse response =
 * ServletActionContext.getResponse(); response.setCharacterEncoding("UTF-8");
 * response.setContentType("html/json"); PrintWriter out = response.getWriter();
 * List<ZTreeNode> list;
 * 
 * LoginObject login = getLoginObject();
 * 
 * list = service.queryGoodsType(login.getAccountId()); jObj =
 * JSONArray.fromObject(list); //将json数据串传到前端网页 out.print(jObj.toString());
 * out.flush(); return ; }
 * 
 *//**
	 * 根据商品类型查询商品分页显示
	 * 
	 * @throws IOException
	 */
/*
 * public String queryGoods(){
 * 
 * String classId = ServletActionContext.getRequest().getParameter("classId");
 * String pageIndex =
 * ServletActionContext.getRequest().getParameter("pageIndex"); String pageSize
 * = ServletActionContext.getRequest().getParameter("pageSize");
 * 
 * try { Result rs = service.queryGoods(classId,Integer.parseInt(pageIndex),
 * Integer.parseInt(pageSize)); json = new
 * InfoDone(rs.getTotalCount(),rs.getDataList()); } catch (Exception e) {
 * e.printStackTrace(); } return "ajaxResult"; }
 * 
 *//**
	 * 到支付页面，同时生成订单，添加订单记录
	 * 
	 * @throws IOException
	 */
/*
 * public String toBilling(){ LoginObject login = getLoginObject(); String
 * memberId = ServletActionContext.getRequest().getParameter("memberId"); String
 * orderNum = ServletActionContext.getRequest().getParameter("orderNum"); String
 * goods_id = ""; String goods_price = ""; String goods_buynum = ""; try {
 * 
 * List<TbmAccountOrderGoods> taogList = new ArrayList<TbmAccountOrderGoods>();
 * BigDecimal orderTotal = new BigDecimal(0.0d); BigDecimal goodsTotal = new
 * BigDecimal(0.0d); BigDecimal integral = new BigDecimal(0); for (int i = 0; i
 * < goodsId.size(); i++) { goods_id = goodsId.get(i); goods_price =
 * goodsPrice.get(i); goods_buynum = goodsBuyNum.get(i); //查询商品现有库存
 * TbmAccountGoods tag = (TbmAccountGoods)
 * commonService.getByID(TbmAccountGoods.class, Integer.parseInt(goods_id));
 * 
 * 
 * //处理订单总价 BigDecimal goodsPrice = new BigDecimal(goods_price); BigDecimal
 * goodsBuynum = new BigDecimal(goods_buynum); orderTotal =
 * orderTotal.add(goodsPrice.multiply(goodsBuynum));
 * 
 * 
 * //生成订单详情 BigDecimal goodsSellPrice = new BigDecimal(tag.getGoodsSellPrice());
 * BigDecimal buyNum = new BigDecimal(goods_buynum); goodsTotal
 * =goodsTotal.add(goodsSellPrice.multiply(buyNum));
 * 
 * TbmAccountOrderGoods taog = new TbmAccountOrderGoods();
 * taog.setAccountId(tag.getAccountId()); taog.setGoodsId(tag.getGoodsId());
 * taog.setGoodsImage(tag.getPicPath()); taog.setGoodsName(tag.getGoodsName());
 * taog.setGoodsNum(Short.parseShort(goods_buynum));
 * taog.setGoodsPayPrice(Double.parseDouble(goods_price));
 * taog.setGoodsPrice(tag.getGoodsSellPrice()); if(tag.getIntegralRate()!=null){
 * taog.setIntegralRate(tag.getIntegralRate()); }else{
 * taog.setIntegralRate(0.00); } if(tag.getThumbPicPath()==null){
 * tag.setThumbPicPath(""); } taog.setGoodsImage(tag.getThumbPicPath());
 * taog.setMemberId(memberId); taog.setGoodsType((short)1); integral =
 * integral.add(new BigDecimal(tag.getAwardedIntegral()).multiply(goodsBuynum));
 * taogList.add(taog); }
 * 
 * 
 * 
 * if (memberId==null||"".equals(memberId)) {
 * ActionContext.getContext().put("memberStatus", 0); integral = new
 * BigDecimal(0); }else{ TbmAccountMembersId id = new
 * TbmAccountMembersId(memberId,login.getAccountId()); TbmAccountMembers tam =
 * service.getById(id); ActionContext.getContext().put("tam", tam);
 * //ActionContext.getContext().put("memberId", tam.getId().getMemberId());
 * ActionContext.getContext().put("integral", integral); } TbmAccountOrderLog
 * taol = new TbmAccountOrderLog(); //查询订单是否存在 TbmAccountOrder tao =
 * service.queryByOrderSn(orderNum); if(tao==null){ //处理订单信息 TbmAccountOrder
 * tao1 = new TbmAccountOrder(); tao1.setOrderSn(orderNum);
 * tao1.setAccountId(login.getAccountId()); tao1.setMemberId(memberId);
 * tao1.setAddTime(Timestamp.valueOf(DateUtil.currentTime()));
 * tao1.setOrderAmount(orderTotal.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue()); tao1.setOrderFrom((short)0); tao1.setOrderState((short)10);
 * tao1.setDeleteState((short)0);
 * tao1.setGoodsAmount(goodsTotal.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue());
 * tao1.setIntegralHandsel(integral.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue());
 * 
 * taol.setAccountId(login.getAccountId()); taol.setLogMessage("新增订单");
 * taol.setLogTime(Timestamp.valueOf(DateUtil.currentTime()));
 * taol.setLogUser(login.getLoginName());
 * 
 * taol.setOrderState((short)10); //service.addOrderLog(taol);
 * 
 * service.addOrder(tao1, taogList,taol); ActionContext.getContext().put("tao",
 * tao1); //ActionContext.getContext().put("list", taogList); }else{
 * tao.setOrderAmount(orderTotal.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue());
 * tao.setGoodsAmount(goodsTotal.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue());
 * tao.setIntegralHandsel(integral.setScale(2,BigDecimal.ROUND_HALF_UP).
 * doubleValue()); //清空订单商品，重新添加 List<TbmAccountOrderGoods> goodsList =
 * service.queryGoodsByOrderId(tao.getOrderId().toString()); //删除查询到的商品 if
 * (goodsList!=null) { for (TbmAccountOrderGoods goods : goodsList) {
 * service.delGoods(goods); } } service.updateOrder(tao,taogList);
 * ActionContext.getContext().put("tao", tao);
 * 
 * }
 * 
 * } catch (Exception e) { e.printStackTrace(); } return "toBilling"; }
 * 
 *//**
	 * 根据商品名称查询商品显示
	 * 
	 * @throws IOException
	 */
/*
 * public String queryGoodsByName(){ String goodsName =
 * ServletActionContext.getRequest().getParameter("goodsName"); try {
 * List<TbmAccountGoods> list = service.queryGoodsByName(goodsName); json = new
 * InfoDone("y","","","","",list); } catch (Exception e) { e.printStackTrace();
 * } return "ajaxResult"; }
 * 
 *//**
	 * 到支付宝支付页
	 * 
	 * @throws IOException
	 */
/*
 * public String toOrderPay(){ LoginObject login = getLoginObject(); String
 * pay_method = ServletActionContext.getRequest().getParameter("pay_method");
 * String orderSn = ServletActionContext.getRequest().getParameter("orderSn");
 * String discount = ServletActionContext.getRequest().getParameter("discount");
 * String moneyNum = ServletActionContext.getRequest().getParameter("moneyNum");
 * String note = ServletActionContext.getRequest().getParameter("note");
 * 
 * String subject;
 * 
 * try { TbmAccountOrder tao = service.queryByOrderSn(orderSn);
 * tao.setMinusMoney(Double.parseDouble(discount));
 * tao.setOrderAmount(Double.parseDouble(moneyNum)); if
 * (note!=null||"".equals(note)) { tao.setOrderMsg(note); }
 * service.updateOrder(tao,null); subject = "订单支付";
 * 
 * if("5".equals(pay_method)){//支付宝支付
 * 
 * //String path = "zhifu"; //查询商家后台域名+回调方法 String returnUrl =
 * "http://"+payService.findUrl(login.getAccountId())+"/alipayReturnUrl.do";
 * String notifyUrl = payService.findUrl(login.getAccountId())+""; String
 * sHtmlText=payService.toAlipayUrl(orderSn,subject,returnUrl,notifyUrl);
 * if(sHtmlText!=null&&!"".equals(sHtmlText)){
 * 
 * HttpServletResponse response = ServletActionContext.getResponse();
 * response.setCharacterEncoding("UTF-8"); response.setContentType("text/html");
 * response.getWriter().write(sHtmlText); return null; } return "toAlipayURL"; }
 * } catch (Exception e) { e.printStackTrace(); } return null; }
 * 
 *//**
	 * 支付宝主动发起请求(同步)
	 * 
	 * @return
	 * @throws Exception
	 */
/*
 * public String alipayReturnUrl() throws Exception{
 * 
 * //支付宝返回的一些参数 //商户订单号 String out_trade_no =
 * ServletActionContext.getRequest().getParameter("out_trade_no"); String
 * outTradeNo = new String(out_trade_no.getBytes("ISO-8859-1"),"UTF-8"); String
 * subject = ServletActionContext.getRequest().getParameter("subject");
 * //subject = new String(subject.getBytes("ISO-8859-1"),"UTF-8"); //交易付款时间 try
 * { String notify_time =
 * ServletActionContext.getRequest().getParameter("notify_time"); String
 * notifyTime = new String(notify_time.getBytes("ISO-8859-1"),"UTF-8");
 * TbmAccountOrder tao = service.queryByOrderSn(outTradeNo);
 * tao.setOrderState((short)20);
 * tao.setFinishTime(Timestamp.valueOf(DateUtil.currentTime()));
 * service.updateOrder(tao,null); TbmAccountOrderLog taol =
 * service.queryByOrderId(tao.getOrderId());
 * 
 * TbmAccountOrderLog taol1 = new TbmAccountOrderLog();
 * taol1.setOrderState((short)20);
 * taol1.setLogTime(Timestamp.valueOf(notifyTime));
 * taol1.setAccountId(taol.getAccountId());
 * taol1.setLogMessage(taol.getLogMessage());
 * taol1.setLogUser(taol.getLogUser()); taol1.setOrderId(taol.getOrderId());
 * service.addOrderLog(taol1); //判断是否会员，如果是会员，需要保存积分
 * 
 * } catch (Exception e) { e.printStackTrace(); } return "alipayReturnUrl"; }
 * 
 *//**
	 * 支付宝主动发起请求(异步)
	 * 
	 * @return
	 * @throws IOException
	 */
/*
 * public void alipayNotifyUrl() throws IOException{ try { //支付宝返回的一些参数 //商户订单号
 * String out_trade_no =
 * ServletActionContext.getRequest().getParameter("out_trade_no"); String
 * outTradeNo = new String(out_trade_no.getBytes("ISO-8859-1"),"UTF-8"); String
 * subject = ServletActionContext.getRequest().getParameter("subject"); subject
 * = new String(subject.getBytes("ISO-8859-1"),"UTF-8"); //交易付款时间 String
 * notify_time = ServletActionContext.getRequest().getParameter("notify_time");
 * String notifyTime = new String(notify_time.getBytes("ISO-8859-1"),"UTF-8");
 * 
 * } catch (Exception e) { e.printStackTrace(); }
 * 
 * ServletActionContext.getResponse().getWriter().write("SUCCESS"); }
 * 
 * 
 *//**
	 * 到现金支付页面
	 * 
	 * @return
	 */
/*
 * public String toXianJin(){ String orderSn =
 * ServletActionContext.getRequest().getParameter("orderSn"); String discount =
 * ServletActionContext.getRequest().getParameter("discount"); String moneyNum =
 * ServletActionContext.getRequest().getParameter("moneyNum"); String integral =
 * ServletActionContext.getRequest().getParameter("integral"); String note =
 * ServletActionContext.getRequest().getParameter("note"); String memberId =
 * ServletActionContext.getRequest().getParameter("memberId");
 * 
 * TbmAccountOrder tao = service.queryByOrderSn(orderSn); try {
 * tao.setMinusMoney(Double.parseDouble(discount));
 * tao.setOrderAmount(Double.parseDouble(moneyNum)); if
 * (note!=null||"".equals(note)) { tao.setOrderMsg(note); }
 * service.updateOrder(tao,null); if (memberId==null||"".equals(memberId)) {
 * ActionContext.getContext().put("memberStatus", 0);
 * 
 * }else{ ActionContext.getContext().put("memberId", memberId);
 * ActionContext.getContext().put("integral", integral); }
 * ActionContext.getContext().put("orderSn", orderSn);
 * ActionContext.getContext().put("moneyNum", moneyNum);
 * //ActionContext.getContext().put("integral", integral);
 * 
 * } catch (Exception e) { e.printStackTrace(); } return "toXianJin"; }
 * 
 *//**
	 * 确认现金支付
	 * 
	 * @return
	 */
/*
 * public String xianJin(){ LoginObject login = getLoginObject(); String orderSn
 * = ServletActionContext.getRequest().getParameter("orderSn"); String memberId
 * = ServletActionContext.getRequest().getParameter("memberId"); String integral
 * = ServletActionContext.getRequest().getParameter("integral"); try {
 * TbmAccountOrder tao = service.queryByOrderSn(orderSn);
 * tao.setOrderState((short)20);
 * tao.setFinishTime(Timestamp.valueOf(DateUtil.currentTime()));
 * service.updateOrder(tao,null); if (memberId!=null && !"".equals(memberId)) {
 * TbmAccountMembersId id = new
 * TbmAccountMembersId(memberId,login.getAccountId()); TbmAccountMembers tam =
 * service.getById(id);
 * tam.setMemberIntegral(BigDecimal.valueOf(tam.getMemberIntegral()).add(
 * BigDecimal.valueOf(Double.parseDouble(integral))).doubleValue());
 * service.updateMember(tam); TbmMemberIntegralLog tmil = new
 * TbmMemberIntegralLog(); tmil.setAccountId(login.getAccountId());
 * tmil.setMemberId(memberId); tmil.setOrderId(tao.getOrderId());
 * tmil.setIntegralNum(Double.valueOf(integral)); tmil.setSign((short)1);
 * tmil.setTime(Timestamp.valueOf(DateUtil.currentTime()));
 * service.addIntegralLog(tmil); }
 * 
 * TbmAccountOrderLog taol = service.queryByOrderId(tao.getOrderId());
 * 
 * TbmAccountOrderLog taol1 = new TbmAccountOrderLog();
 * taol1.setOrderState((short)20);
 * taol1.setLogTime(Timestamp.valueOf(DateUtil.currentTime()));
 * taol1.setAccountId(taol.getAccountId());
 * taol1.setLogMessage(taol.getLogMessage());
 * taol1.setLogUser(taol.getLogUser()); taol1.setOrderId(taol.getOrderId());
 * service.addOrderLog(taol1); } catch (Exception e) { e.printStackTrace(); }
 * 
 * return "paySuccess"; }
 * 
 *//**
	 * 到现会员卡付页面
	 * 
	 * @return
	 */
/*
 * public String toMemberCard(){ LoginObject login = getLoginObject(); String
 * orderSn = ServletActionContext.getRequest().getParameter("orderSn"); String
 * discount = ServletActionContext.getRequest().getParameter("discount"); String
 * moneyNum = ServletActionContext.getRequest().getParameter("moneyNum"); String
 * integral = ServletActionContext.getRequest().getParameter("integral"); String
 * note = ServletActionContext.getRequest().getParameter("note"); String
 * memberId = ServletActionContext.getRequest().getParameter("memberId"); try {
 * TbmAccountOrder tao = service.queryByOrderSn(orderSn);
 * 
 * tao.setMinusMoney(Double.parseDouble(discount));
 * tao.setOrderAmount(Double.parseDouble(moneyNum)); if
 * (note!=null||"".equals(note)) { tao.setOrderMsg(note); }
 * service.updateOrder(tao,null); TbmAccountMembersId id = new
 * TbmAccountMembersId(memberId,login.getAccountId()); TbmAccountMembers tam =
 * service.getById(id); ActionContext.getContext().put("tam", tam);
 * ActionContext.getContext().put("orderSn", orderSn);
 * ActionContext.getContext().put("moneyNum", moneyNum);
 * ActionContext.getContext().put("integral", integral);
 * 
 * } catch (Exception e) { e.printStackTrace(); } return "toMemberCard"; }
 * 
 *//**
	 * 确认会员卡支付
	 * 
	 * @return
	 */
/*
 * public String memberCard(){ LoginObject login = getLoginObject(); String
 * orderSn = ServletActionContext.getRequest().getParameter("orderSn"); String
 * memberId = ServletActionContext.getRequest().getParameter("memberId"); String
 * integral = ServletActionContext.getRequest().getParameter("integral"); String
 * moneyNum = ServletActionContext.getRequest().getParameter("moneyNum"); try {
 * TbmAccountOrder tao = service.queryByOrderSn(orderSn);
 * tao.setOrderState((short)20);
 * tao.setFinishTime(Timestamp.valueOf(DateUtil.currentTime()));
 * service.updateOrder(tao,null);
 * 
 * TbmAccountMembersId id = new
 * TbmAccountMembersId(memberId,login.getAccountId()); TbmAccountMembers tam =
 * service.getById(id);
 * tam.setCardBalance(BigDecimal.valueOf(tam.getCardBalance()).multiply(
 * BigDecimal.valueOf(Double.parseDouble(moneyNum))).doubleValue());
 * tam.setMemberIntegral(BigDecimal.valueOf(tam.getMemberIntegral()).add(
 * BigDecimal.valueOf(Double.parseDouble(integral))).doubleValue());
 * service.updateMember(tam);
 * 
 * TbmMemberIntegralLog tmil = new TbmMemberIntegralLog();
 * tmil.setAccountId(login.getAccountId()); tmil.setMemberId(memberId);
 * tmil.setOrderId(tao.getOrderId());
 * tmil.setIntegralNum(Double.valueOf(integral)); tmil.setSign((short)1);
 * tmil.setTime(Timestamp.valueOf(DateUtil.currentTime()));
 * service.addIntegralLog(tmil);
 * 
 * 
 * TbmAccountOrderLog taol = service.queryByOrderId(tao.getOrderId());
 * 
 * TbmAccountOrderLog taol1 = new TbmAccountOrderLog();
 * taol1.setOrderState((short)20);
 * taol1.setLogTime(Timestamp.valueOf(DateUtil.currentTime()));
 * taol1.setAccountId(taol.getAccountId());
 * taol1.setLogMessage(taol.getLogMessage());
 * taol1.setLogUser(taol.getLogUser()); taol1.setOrderId(taol.getOrderId());
 * service.addOrderLog(taol1); } catch (Exception e) { e.printStackTrace();
 * 
 * }
 * 
 * return "paySuccess"; }
 * 
 *//**
	 * 到未结算页
	 * 
	 * @return
	 */
/*
 * public String toWeiJieSuan(){ LoginObject login = getLoginObject(); try {
 * List<Object[]> list = service.queryOrderByStatus(login.getAccountId());
 * ActionContext.getContext().put("list", list);
 * 
 * } catch (Exception e) { e.printStackTrace(); } return "toWeiJieSuan"; }
 * 
 *//**
	 * 根据条件查询未结算订单
	 * 
	 * @return
	 *//*
		 * public String queryWeiJieSuan(){ LoginObject login = getLoginObject(); String
		 * orderSn = ServletActionContext.getRequest().getParameter("orderSn"); String
		 * startTime = ServletActionContext.getRequest().getParameter("startTime");
		 * String endTime = ServletActionContext.getRequest().getParameter("endTime");
		 * try { List<Object[]> list = service.conditionQuery(login.getAccountId(),
		 * orderSn, startTime, endTime); ActionContext.getContext().put("list", list); }
		 * catch (Exception e) { e.printStackTrace(); } return "queryWeiJieSuan"; }
		 * 
		 * 
		 * 
		 * 
		 * 
		 * 
		 * public List<String> getGoodsId() { return goodsId; }
		 * 
		 * public void setGoodsId(List<String> goodsId) { this.goodsId = goodsId; }
		 * 
		 * public List<String> getGoodsPrice() { return goodsPrice; }
		 * 
		 * public void setGoodsPrice(List<String> goodsPrice) { this.goodsPrice =
		 * goodsPrice; }
		 * 
		 * public List<String> getGoodsBuyNum() { return goodsBuyNum; }
		 * 
		 * public void setGoodsBuyNum(List<String> goodsBuyNum) { this.goodsBuyNum =
		 * goodsBuyNum; }
		 * 
		 * public InfoDone getJson() { return json; }
		 * 
		 * public void setJson(InfoDone json) { this.json = json; }
		 * 
		 * }
		 */